package com.lrkj.waitress.domain;

import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 巡逻任务对象 tb_cruiser_task
 *
 * @author yajun_ren
 * @date 2022-03-23
 */
@Data
public class CruiserTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 小区ID */
    @Excel(name = "小区ID")
    private String communityId;

    /** 路线id */
    @Excel(name = "路线id")
    private String pathId;

    /** 巡逻时间 */
    @Excel(name = "巡逻时间")
    private String cruiserTime;

    /** 巡逻结束时间 */
    @Excel(name = "巡逻结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String cruiserEndtime;

    /** 巡检人 */
    @Excel(name = "巡检人")
    private String cruiserPersion;

    /** 任务状态 */
    @Excel(name = "任务状态")
    private String taskState;

    /** 部门ID */
    @Excel(name = "部门ID")
    private String deptId;

    /** 祖父ID */
    @Excel(name = "祖父ID")
    private String ancestors;

    private String pathName;

    private String zsl;

    private String statecount;

    /** 拍照图片 */
    @Excel(name = "拍照图片")
    private String cruiserImg;

    /** 任务备注 */
    @Excel(name = "任务备注")
    private String cruiserRemark;

    private String nickName;

    //小区名称
    private String communityName;

    //站点ID集合
    private List<String> pathDetailList;

    public List<String> getPathDetailList() {
        return pathDetailList;
    }

    public void setPathDetailList(List<String> pathDetailList) {
        this.pathDetailList = pathDetailList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("communityId", getCommunityId())
            .append("pathId", getPathId())
            .append("cruiserTime", getCruiserTime())
            .append("cruiserPersion", getCruiserPersion())
            .append("taskState", getTaskState())
            .append("deptId", getDeptId())
            .append("ancestors", getAncestors())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
